#!/bin/bash
now=`date +%Y-%m-%d_%H:%M`
out=$now' '$2
mkdir $1
cp ./makefile ./$1/
echo $1' '$out >> ./doc
cat ./doc | awk '{if (NF == 3) {print $1, "\t", $2, "\t", $3;} else {print $0;}}' > ./doctmp
mv ./doctmp ./doc
echo '/* '$out' */' > ./main.tmp
cat ./main.c >> ./main.tmp
mv ./main.tmp ./$1/main.c

